<!-- /StudX_dir/StudX/templates/dashboard_base.html -->

{% load static from staticfiles %}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">

  <head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
	{% block extra_meta %}{% endblock extra_meta %}
	
    <title>{% block title %}Dashboard {% endblock title %}- StudX</title>

	<!-- Bootstrap select -->
	<link rel="stylesheet" href="{% static 'vendor/bootstrap-select-1.13.2/dist/css/bootstrap-select.min.css' %}">	
	
    <!-- Bootstrap core CSS-->
    <link href="{% static 'vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">

    <!-- Custom fonts for this template-->
    <link href="{% static 'vendor/fontawesome-free/css/all.min.css' %}" rel="stylesheet" type="text/css">

    <!-- Page level plugin CSS-->
    <link href="{% static 'vendor/datatables/dataTables.bootstrap4.css' %}" rel="stylesheet">

    <!-- Custom styles for this template-->
    <link href="{% static 'css/sb-admin.css' %}" rel="stylesheet">
	{% block extra_css %}{% endblock extra_css %}
	
	<!-- My Custom styles -->
    <link href="{% static 'css/MyStyle.css' %}" rel="stylesheet">
	
	{% block extra_script %}{% endblock extra_script %}
	
  </head>

  <body id="page-top">

    <nav class="navbar navbar-expand navbar-dark bg-dark static-top">

      <a class="navbar-brand mr-1" id="MyBrand" href="{% url 'dashboard:dashboard' %}">StudX</a>

      <button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
        <i class="fas fa-bars"></i>
      </button>

      <!-- Navbar Search -->
      <form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0">
        <!-- <div class="input-group"> -->
          <!-- <input type="text" class="form-control" placeholder="Search for..." aria-label="Search" aria-describedby="basic-addon2"> -->
          <!-- <div class="input-group-append"> -->
            <!-- <button class="btn btn-primary" type="button"> -->
              <!-- <i class="fas fa-search"></i> -->
            <!-- </button> -->
          <!-- </div> -->
        <!-- </div> -->
      </form>

      <!-- Navbar -->
      <ul class="navbar-nav ml-auto ml-md-0">
		<li class="nav-item dropdown no-arrow mx-1">
          <a class="nav-link dropdown-toggle" href="#" id="shortcutsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <i class="fas fa-th-large"></i>
          </a>
          <div class="dropdown-menu dropdown-menu-right" aria-labelledby="shortcutsDropdown">
            <a class="dropdown-item" href="{% url 'student:create_discipline' %}">
				<i class="fas fa-plus"></i>
				<span>{% trans 'New fact' %}</span>
			</a>
            <a class="dropdown-item" href="{% url 'student:create_inout' 'Arrival' %}">
				<i class="fas fa-plus"></i>
				<span>{% trans "Add Arrival" %}</span>
			</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#">Something else here</a>
          </div>
        </li>
        <li class="nav-item dropdown no-arrow mx-1">
          <a class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <i class="fas fa-bell fa-fw"></i>
            <span class="badge badge-danger">9+</span>
          </a>
          <div class="dropdown-menu dropdown-menu-right" aria-labelledby="alertsDropdown">
            <a class="dropdown-item" href="#">Action</a>
            <a class="dropdown-item" href="#">Another action</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#">Something else here</a>
          </div>
        </li>
        <li class="nav-item dropdown no-arrow mx-1">
          <a class="nav-link dropdown-toggle" href="#" id="messagesDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <i class="fas fa-envelope fa-fw"></i>
            <span class="badge badge-danger">7</span>
          </a>
          <div class="dropdown-menu dropdown-menu-right" aria-labelledby="messagesDropdown">
            <a class="dropdown-item" href="#">Action</a>
            <a class="dropdown-item" href="#">Another action</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#">Something else here</a>
          </div>
        </li>
        <li class="nav-item dropdown no-arrow">
          <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <i class="fas fa-user-circle fa-fw"></i>
          </a>
          <div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
			<a class="dropdown-item disabled" href="#" tabindex="-1" aria-disabled="true">{{ user.get_username }}</a>
			<div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#">Settings</a>
            <a class="dropdown-item" href="#">Activity Log</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">Logout</a>
          </div>
        </li>
      </ul>

    </nav>

    <div id="wrapper">

      <!-- Sidebar -->
		{% include 'dashboard_menu.html' %}
	  <!-- Sidebar END -->

      <div id="content-wrapper">

        <div class="container-fluid">

			<!-- Breadcrumbs-->
			<!-- <ol class="breadcrumb"> -->
				<!-- <li class="breadcrumb-item"> -->
					<!-- <a href="{% url 'dashboard:dashboard' %}">Dashboard</a> -->
				<!-- </li> -->
				<!-- <li class="breadcrumb-item active">Overview</li> -->
			<!-- </ol> -->
			
			{% block content %}
				if you see this, something is wrong!
			{% endblock content %}
         
        </div>
        <!-- /.container-fluid -->

        <!-- Sticky Footer -->
        <footer class="sticky-footer">
          <div class="container my-auto">
            <div class="copyright text-center my-auto">
              <span>Copyright © StudX 2018</span>
            </div>
          </div>
        </footer>

      </div>
      <!-- /.content-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- Scroll to Top Button-->
    <a class="scroll-to-top rounded" href="#page-top">
      <i class="fas fa-angle-up"></i>
    </a>

    <!-- Logout Modal-->
    <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5>
            <button class="close" type="button" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">x</span>
            </button>
          </div>
          <div class="modal-body">Select "Logout" below if you are ready to end your current session.</div>
          <div class="modal-footer">
            <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
            <a class="btn btn-primary" href="{% url 'user:logout' %}">Logout</a>
          </div>
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript -->
    <script src="{% static 'vendor/jquery/jquery.min.js' %}"></script>
    <script src="{% static 'vendor/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
	
	<!-- Bootstrap select JavaScript -->
	<script src="{% static 'vendor/bootstrap-select-1.13.2/dist/js/bootstrap-select.min.js' %}"></script>

    <!-- Core plugin JavaScript -->
    <script src="{% static 'vendor/jquery-easing/jquery.easing.min.js' %}"></script>

    <!-- Chart/Table plugin JavaScript -->
    <script src="{% static 'vendor/chart.js/Chart.min.js' %}"></script>
    <script src="{% static 'vendor/datatables/jquery.dataTables.js' %}"></script>
    <script src="{% static 'vendor/datatables/dataTables.bootstrap4.js' %}"></script>

    <!-- Template script -->
    <script src="{% static 'js/sb-admin.min.js' %}"></script>
	
	{% block extra_js %}{% endblock extra_js %}
	
	<script type="text/javascript">
		{% block extra_preready_js %}{% endblock extra_preready_js %}
		$(document).ready(function () {
			$('[data-toggle="tooltip"]').tooltip(); 
			{% block extra_ready_js %}{% endblock extra_ready_js %}
		});
	</script>

    

  </body>

</html>
